// 是否枚举
enum HttpRequestTypeEnum {
    get = 0,
    post = 1
}

// 是否枚举成员
const httpRequestTypeMembers:Map<HttpRequestTypeEnum, string> = new Map<HttpRequestTypeEnum, string>()
httpRequestTypeMembers.set(HttpRequestTypeEnum.get, 'GET')
httpRequestTypeMembers.set(HttpRequestTypeEnum.post, 'POST')

/**
 * 是否过滤器
 * @param value 值
 * */
function httpRequestTypeFilter(value:HttpRequestTypeEnum):string {
    const result:string = httpRequestTypeMembers.has(value) ? httpRequestTypeMembers.get(value)! : ''
    return result
}

export {
    HttpRequestTypeEnum,
    httpRequestTypeMembers,
    httpRequestTypeFilter
}
